home *** CD-ROM | disk | FTP | other *** search
/ BMUG Revelations / BMUG Revelations.toast / Utilities / Screen Savers / DarkSide of the Mac 4.2 / SampleFaders / Fader.r < prev    next >
Text File  |  1994-08-18  |  2KB  |  100 lines

  1. /*
  2.     DarkSide 4.0 - a 7.0 dependant, system clean expandable screen saver.
  3.     
  4.     copyright © 1990-1994 by Tom Dowdy
  5.     All rights reserved.
  6.     
  7. */
  8. #define systemSevenOrLater    1
  9. #include "Types.r"
  10. #include "SysTypes.r"
  11.  
  12. #include "BalloonTypes.r"
  13.  
  14. // amount of room you have to work with in your fader dialog
  15. #define areaHeight                 180
  16. #define areaWidth                 310
  17.  
  18. // slider control resource
  19. type 'SCTL' {
  20.     integer=$$Countof(ValueStringPairs);
  21.     Array ValueStringPairs {
  22.         integer;    // display string if value >= this value
  23.         pstring;    // string to display
  24.     };
  25. };
  26.  
  27. // screen depth preferences, ID == 5000 specifies the depths your fader would like
  28. // the first matching depth that the device supports is selected, so you
  29. // should order this list in decending preferences.  If none of the depths match,
  30. // then no change is made to the GDevice.
  31. #define noFlags        0x0000
  32. #define colorDevice    0x0001
  33. type 'DEEP' {
  34.     integer = $$CountOf(DepthPreferencesList);
  35.     array DepthPreferencesList {
  36.         integer;            // preferred depth
  37.         integer;            // whichFlags
  38.         integer;            // flags
  39.         };
  40. };
  41.  
  42. // ID = 0 specifies the type of sound channel your fader would like to have
  43. #define squareWaveSynth    1
  44. #define waveTableSynth    3
  45. #define sampledSynth    5
  46. type 'Chnl' {
  47.     integer;
  48. };
  49.  
  50. // dialog control list
  51. type 'DCTL' {
  52.     integer = $$CountOf(DCTLArray);
  53.     array DCTLArray {
  54.         integer;            // item number - zero for expressing cluster ranges
  55.         integer;            // minValue for grouped items
  56.         integer;            // maxValue for grouped items
  57.         integer;            // setting index, 0-19 for shorts, 20-23 for strings
  58.         };
  59. };
  60.  
  61. // default settings
  62. type 'DFLT' {
  63.     array Shorts {
  64.         integer;            // range of shorts
  65.         };
  66.         
  67.     array Strings {
  68.         pstring;
  69.         };
  70. };
  71.  
  72. // String that displays when the user clicks on the help items in the dialog
  73. type 'HELP' {
  74.     string;
  75. };
  76.  
  77. #ifndef COMPILINGDARKSIDE
  78.     // application name this document requires
  79.     resource 'STR ' (-16396, purgeable) {
  80.         "DarkSide of the Mac 4.2"
  81.     };
  82.     
  83.     #ifndef DONOTINCLUDEVERSION
  84.         // version info of this fader
  85.         resource 'vers' (1, purgeable) {
  86.             0x04, 0x02, release, 0x00, verUS,
  87.             "4.2",
  88.             "4.2 (US), © Tom Dowdy, 1990-94"
  89.         };
  90.         
  91.         // major version of DarkSide required to run this fader
  92.         resource 'vers' (2, purgeable) {
  93.             0x04, 0x02, release, 0x00, verUS,
  94.             "4.2",
  95.             "(for DarkSide of the Mac 4.2)"
  96.         };
  97.     #endif
  98.  
  99. #endif
  100.